/*
 * @Description: 入口文件
 * @Author: liangrongjun
 * @Date: 2021-09-27 10:02:32
 * @LastEditors: liangrongjun
 * @LastEditTime: 2021-10-21 16:11:36
 */
// @ts-nocheck
import React, { useEffect } from 'react';
import { render } from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import Router from './router';
import "@/assets/styles/common.scss";
import './lib/commonSet';

const App = () => {
  useEffect(() => {
    import("vconsole").then(function ({ default: VConsole }) {
      var vConsole = new VConsole();
    });
  }, []);

  return (
    <BrowserRouter basename={'/only-test-react'}>
      <Router />
    </BrowserRouter>
  );
};

render(
  <App />,
  document.getElementById('root')
);